package com.joker.springcloud.config;


import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @Author JokerKS
 * @Date 2021/12/20 10:40
 * @Version 1.0
 */
@Configuration
public class ConfigBean {
	@Bean
	@LoadBalanced//Ribbon 实现负载均衡
	public RestTemplate getRestTemplate() {
		return new RestTemplate();
	}

}
